package be.novelfaces.showcase.webdriver.pages.documentation;

import be.novelfaces.showcase.webdriver.pages.NovelFacesPage;
import be.novelfaces.showcase.webdriver.util.NFBy;

public class DocumentationPage extends NovelFacesPage<DocumentationPage> {

	public boolean isUserGuideLinkPresent() {
		return isElementPresent(NFBy.docFormId("userGuide"));
	}

	public boolean isTagLibraryDocLinkPresent() {
		System.out.println(getWebDriver().findElement(NFBy.docFormId("tldoc"))
				.getAttribute("href"));
		return getWebDriver().findElement(NFBy.docFormId("tldoc"))
				.getAttribute("href")
				.endsWith("tldoc/novelfaces.taglib.html");
	}

	@Override
	protected String getContentHeaderTitle() {
		return getProperty("documentation_cap");
	}

	@Override
	protected void initNovelFacesPage() {

	}

}
